package com.order.service;

import com.common.VO.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Elias
 * @version 1.0
 * @date 2021-06-25 10:16
 * @description
 * @copyright 2021
 */
@FeignClient(name = "cart")
public interface CartService {
  /**
   * 查询指定商品价格
   *
   * @param productIds 商品id
   * @param productNums 商品数量
   * @param userId 用户id
   * @return 总价格
   */
  @RequestMapping("/get/money")
  @ResponseBody
  public SysResult getMoney(
      @RequestParam("productIds") String productIds,
      @RequestParam("productNums") String productNums,
      @RequestParam("userId") String userId);
}
